<?php TPL::output('admin/global/header.tpl.htm'); ?>
<script src="<?php echo G_STATIC_URL; ?>/js/ajaxupload.js" type="text/javascript"></script>
<body style="overflow-y:scroll;">
<div id="body-wrapper">
<div id="main-content">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3><?php echo $this->crumb['last']['name']; ?></h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<form id="_save_form" action="admin/category/save_ajax/category_id-<?php echo $this->category['id']; ?>" method="post">
					<fieldset>
					<p>
						<label>分类标题：</label>
						<input type="text" name="title" class="text-input small-input" value="<?php echo $this->category['title']; ?>">
					</p>
					<p>
						<label>分类描述：</label>
						<input id="description" type="text" value="<?php echo $this->category['description']; ?>" class="text-input medium-input" name="description">
					</p>
					<p>
						<label>父级分类：</label>
						<select style="width:200px;" name="parent_id">
							<option value="0">无</option>
							<?php echo $this->category_option; ?>
						</select>
					</p>
					<p>
						<label>分类图标：</label>
						<?php if($this->category['icon']){ ?>
					<p><img src="<?php echo get_setting('upload_url');?>/category/<?php echo $this->category['icon']; ?>" id="category_icon"/></p>
					<?php } ?>
					<input name="category_icon" class="upload-input" type="file">
					<br />
					<small>(支持上传图片类型：jpg,jpeg,gif,png)</small>
					</p>
					<p>
						<input class="button" type="button" onClick="ajax_post($('#_save_form'), _form_process);" value="  保  存  " />
					</p>
					</fieldset>
					<div class="clear"></div>
				</form>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close2"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>
</div>
<?php TPL::output('admin/global/footer.tpl.htm'); ?>
